<template>
    <h1>内联事件处理器2</h1>
    <button @click="addCount">点击</button>
    <p>{{ count }}</p>
</template>

<script>
export default {
    data() {
        return {
            count: 0
        }
    },
    methods: {
        addCount() {
            this.count++
        }
    }
}
</script>